<?php

class _Q_ {

    public $_modules; // Add Module
    public $_ext; // Add Module

    /**
     * Public function _modules
     * @return _modules|void
     * @param  mixed|void $val
     */

    public function _modules($val=false) {
        if ($val)
            $this->_modules = $val;
        else
            return $this->_modules;
    }

    /**
     * Public function _ext
     * @return _ext|void
     * @param  mixed|void $val
     */

    public function _ext($val=false) {
        if ($val)
            $this->_ext = $val;
        else
            return $this->_ext;
    }

    /* constructor method */

    public function __construct($o= false) {
        $this->_modules = isset($o->_modules) ? $o->_modules : false;
    }
 
    public function includeModule($path, $seperate=",") {
        if(!is_array($this->_modules)){
            $this->_modules = explode($seperate, $this->_modules);
        }

        foreach ($this->_modules as $m) {
            if($m)
                require_once trim($path).trim($m);
        }
    }

}
?>
